import axios, { Axios } from 'axios'
const context = '/recipeservice'

/**
 * 获取 Specificationconfig 分页列表
 */
export function getSpecificationConfigPagination(data: any) {
  return axios.get(`${context}/specificationConfig/pagination`, {
    params: data,
  })
}

/**
 * 获取 Specificationconfig 所有数据
 */
export function getSpecificationConfigAllList(data: any) {
  return axios.get(`${context}/specificationConfig/all`, { params: data })
}

/**
 * 获取 Specificationconfig 详情
 */
export function getSpecificationConfigDetailById(id: any) {
  return axios.get(`${context}/specificationConfig/${id}`, { params: { id } })
}

/**
 * 新增 Specificationconfig
 */
export function addSpecificationConfig(data: any) {
  return axios.post(`${context}/specificationConfig`, data)
}

/**
 * 修改 Specificationconfig
 */
export function updateSpecificationConfig(data: any) {
  return axios.put(`${context}/specificationConfig`, data)
}

/**
 * 删除 Specificationconfig
 */
export function batchRemoveSpecificationConfig(data: any) {
  return axios.post(`${context}/specificationConfig/batchRemove`, data)
}
